<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('小程序用户列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>微信名称：</label>
                            <input type="text" name="nickname"/>
                        </li>
                        <li>
                            <label>头像：</label>
                            <input type="text" name="avatar"/>
                        </li>
                        <li>
                            <label>唯一标识：</label>
                            <input type="text" name="openid"/>
                        </li>
                        <li>
                            <label>手机号：</label>
                            <input type="text" name="phone"/>
                        </li>
                        <li>
                            <label>真实姓名：</label>
                            <input type="text" name="realName"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">

    let editFlag = [[${@permission.hasPermi('applet:appletUser:edit')}]];
    let removeFlag = [[${@permission.hasPermi('applet:appletUser:remove')}]];

    let prefix = ctx + "applet/appletUser";

    $(function () {
        let options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "小程序用户",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'nickname',
                    title: '微信名称'
                },
                {
                    field: 'avatar',
                    title: '头像'
                },
                {
                    field: 'openid',
                    title: '微信唯一标识'
                },
                {
                    field: 'phone',
                    title: '手机号'
                },
                {
                    field: 'realName',
                    title: '真实姓名'
                },
                {
                    field: 'sex',
                    title: '用户性别'
                },
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>